Main Page | Data Structures | File List | Data Fields | Globals

BustaModelCompleteSandwich Class Reference

Busta'Sandwich CompleteSandwich Model. More...

#include <BustaModelCompleteSandwich.h>


Public Member Functions

 BustaModelCompleteSandwich ()
 Constructor.
 ~BustaModelCompleteSandwich ()
 Destructor.
int getWho ()
 Gets opponent id.
void setWho (int w)
 Sets opponent id.
BustaModelFoodPiecegetIngredient (int n)
 Get specified sandwich ingredient.
void setIngredient (BustaModelFoodPiece *fp, int n)
 Sets specified sandwich ingredient.
int getState ()
 returns freshness state of complete sandwich


Detailed Description

Busta'Sandwich CompleteSandwich Model.

Busta'Sandwich Complete Sandwich model for representing sandwiches that have been made


Constructor & Destructor Documentation

BustaModelCompleteSandwich::BustaModelCompleteSandwich  ) 
 

Constructor.

Initializes variables

BustaModelCompleteSandwich::~BustaModelCompleteSandwich  ) 
 

Destructor.

Deletes all of the foodpiece models within the complete sandwich represenation


Member Function Documentation

BustaModelFoodPiece * BustaModelCompleteSandwich::getIngredient int  n  ) 
 

Get specified sandwich ingredient.

Returns the ingredient at the specified location in the array

int BustaModelCompleteSandwich::getState  ) 
 

returns freshness state of complete sandwich

Returns an int between -1 and 1 with 1 being the most fresh

int BustaModelCompleteSandwich::getWho  ) 
 

Gets opponent id.

Returns the opponent id that the sandwich is being sent to

void BustaModelCompleteSandwich::setIngredient BustaModelFoodPiece fp,
int  n
 

Sets specified sandwich ingredient.

Sets the ingredient at the specified location in the array to given foodpiece, deletes foodpiece currently in that location

void BustaModelCompleteSandwich::setWho int  w  ) 
 

Sets opponent id.

Sets who the sandwich is going to


Generated on Sun Aug 14 22:24:56 2005 for BustaSandwich Models by  doxygen 1.4.2-20050421